﻿using System.Web.Mvc;
using WebAppMVCDemo.Filter;

namespace WebAppMVCDemo.Controllers
{
    [MyCustormFilter]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return RedirectToAction("Index2");
            //return View();
        }

        public string Index2()
        {
            return "Hello World!<br>";
        }

        public ActionResult About()
        {


            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}